<div class="municipios view">
<h2><?php  __('Municipio');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $municipio['Municipio']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nombre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $municipio['Municipio']['nombre']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Departamento'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($municipio['Departamento']['id'], array('controller' => 'departamentos', 'action' => 'view', $municipio['Departamento']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Real'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $municipio['Municipio']['real']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Municipio', true), array('action' => 'edit', $municipio['Municipio']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Municipio', true), array('action' => 'delete', $municipio['Municipio']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $municipio['Municipio']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Municipios', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Municipio', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Departamentos', true), array('controller' => 'departamentos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Departamento', true), array('controller' => 'departamentos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Planeaciones', true), array('controller' => 'planeaciones', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Planeacione', true), array('controller' => 'planeaciones', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Zonas', true), array('controller' => 'zonas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Zona', true), array('controller' => 'zonas', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Planeaciones');?></h3>
	<?php if (!empty($municipio['Planeacione'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Mes'); ?></th>
		<th><?php __('Estado'); ?></th>
		<th><?php __('Municipio Id'); ?></th>
		<th><?php __('Centro Apoyo Escolar Id'); ?></th>
		<th><?php __('Actividade Id'); ?></th>
		<th><?php __('Descripcion'); ?></th>
		<th><?php __('Enfasis'); ?></th>
		<th><?php __('Recursos'); ?></th>
		<th><?php __('Resultados Esperados'); ?></th>
		<th><?php __('User Aprobador Id'); ?></th>
		<th><?php __('Observacion'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($municipio['Planeacione'] as $planeacione):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $planeacione['id'];?></td>
			<td><?php echo $planeacione['user_id'];?></td>
			<td><?php echo $planeacione['mes'];?></td>
			<td><?php echo $planeacione['estado'];?></td>
			<td><?php echo $planeacione['municipio_id'];?></td>
			<td><?php echo $planeacione['centro_apoyo_escolar_id'];?></td>
			<td><?php echo $planeacione['actividade_id'];?></td>
			<td><?php echo $planeacione['descripcion'];?></td>
			<td><?php echo $planeacione['enfasis'];?></td>
			<td><?php echo $planeacione['recursos'];?></td>
			<td><?php echo $planeacione['resultados_esperados'];?></td>
			<td><?php echo $planeacione['user_aprobador_id'];?></td>
			<td><?php echo $planeacione['observacion'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'planeaciones', 'action' => 'view', $planeacione['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'planeaciones', 'action' => 'edit', $planeacione['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'planeaciones', 'action' => 'delete', $planeacione['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $planeacione['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Planeacione', true), array('controller' => 'planeaciones', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Zonas');?></h3>
	<?php if (!empty($municipio['Zona'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Municipio Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($municipio['Zona'] as $zona):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $zona['id'];?></td>
			<td><?php echo $zona['municipio_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'zonas', 'action' => 'view', $zona['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'zonas', 'action' => 'edit', $zona['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'zonas', 'action' => 'delete', $zona['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $zona['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Zona', true), array('controller' => 'zonas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
